package com.smartwebx.ha.biz.rainwater.feature.impl;

import java.util.Date;
import java.util.List;

import com.smartwebx.ha.biz.rainwater.feature.BasicFeatureManager;
import com.smartwebx.ha.dal.inter.water.IFeatureFlowDao;
import com.smartwebx.ha.dal.inter.water.IFeatureWaterDao;
import com.smartwebx.ha.dal.usebean.DateValue;
import com.smartwebx.ha.dal.usebean.FeatureHighLow;
import com.smartwebx.ha.dal.util.core.FeatureWaterFlowUtil;

public abstract class BasicFeatureManagerImpl  implements BasicFeatureManager {
	protected abstract IFeatureFlowDao getFeatureFlowDao();

	protected abstract IFeatureWaterDao getFeatureWaterDao();

	@Override
	public FeatureHighLow getMoreYearStatHighLowWater(String stcd) {
		return FeatureWaterFlowUtil.getMoreYearStatHighLowWater(
				getFeatureWaterDao(), stcd);
	}

	@Override
	public FeatureHighLow getMoreYearStatHighLowFlow(String stcd) {
		return FeatureWaterFlowUtil.getMoreYearStatHighLowFlow(
				getFeatureFlowDao(), stcd);
	}

	@Override
	public List<DateValue> getPeriodContrast(String stcd, Date startDate,
			Date endDate) {
		return FeatureWaterFlowUtil.getPeriodContrast(getFeatureWaterDao(),
				stcd, startDate, endDate);
	}

}
